package com.example.demo.dto;

public class UserInfoResponse {
    private int errcode;
    private String errmsg;
    private UserInfoResult result;

    // Getters and Setters
    public int getErrcode() {
        return errcode;
    }

    public void setErrcode(int errcode) {
        this.errcode = errcode;
    }

    public String getErrmsg() {
        return errmsg;
    }

    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }

    public UserInfoResult getResult() {
        return result;
    }

    public void setResult(UserInfoResult result) {
        this.result = result;
    }

    public static class UserInfoResult {
        private String userid;
        private String name;
        private String department;

        // Getters and Setters
        public String getUserid() {
            return userid;
        }

        public void setUserid(String userid) {
            this.userid = userid;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getDepartment() {
            return department;
        }

        public void setDepartment(String department) {
            this.department = department;
        }

        @Override
        public String toString() {
            return "UserInfoResult{" +
                    "userid='" + userid + '\'' +
                    ", name='" + name + '\'' +
                    ", department='" + department + '\'' +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "UserInfoResponse{" +
                "errcode=" + errcode +
                ", errmsg='" + errmsg + '\'' +
                ", result=" + result +
                '}';
    }
}
